package com.gary.security.model;

import java.io.Serializable;

import java.util.HashSet;
import java.util.Set;

import com.gary.core.model.BaseModel;

public class RescInfo extends BaseModel implements Serializable {
    /** * serial. */
    static final long serialVersionUID = 0L;

    /** * name. */
    private String name;

    /** * resType. */
    private String resType;

    /** * resString. */
    private String resString;

    /** * descn. */
    private String descn;

    /** * roles. */
    private Set<RoleInfo> roles = new HashSet<RoleInfo>(0);

    // ----------------------------------------------------
    // transient fields
    // ----------------------------------------------------
    /** * 是否授权. */
    private Boolean authorized;

    // ----------------------------------------------------
    // constructors
    // ----------------------------------------------------
    /** * empty contructor. */
    public RescInfo() {
    }

    /**
     * full contructor.
     * @param name String
     * @param resType String
     * @param resString String
     * @param descn String
     */
    public RescInfo(String name, String resType, String resString, String descn) {
        this.name = name;
        this.resType = resType;
        this.resString = resString;
        this.descn = descn;
    }

    public String getName() {
        return name;
    }

    /** * @param name name. */
    public void setName(String name) {
        this.name = name;
    }

    /** * @return resType. */
    public String getResType() {
        return resType;
    }

    /** * @param resType resType. */
    public void setResType(String resType) {
        this.resType = resType;
    }

    /** * @return resString. */
    public String getResString() {
        return resString;
    }

    /** * @param resString resString. */
    public void setResString(String resString) {
        this.resString = resString;
    }

    /** * @return descn. */
    public String getDescn() {
        return descn;
    }

    /** * @param descn descn. */
    public void setDescn(String descn) {
        this.descn = descn;
    }

    /** * @return roles. */
    public Set<RoleInfo> getRoles() {
        return roles;
    }

    /** * @param roles roles. */
    public void setRoles(Set<RoleInfo> roles) {
        this.roles = roles;
    }

    public Boolean getAuthorized() {
        return authorized;
    }

    /** * @param authorized is authorized. */
    public void setAuthorized(Boolean authorized) {
        this.authorized = authorized;
    }
}
